const env=process.env.NODE_ENV

let MYSQL_CONF
let REDIS_CONF
//区分线上和线下的区别
if(env === 'dev'){
  MYSQL_CONF={
  host:"localhost",
  user:"root",
  password:"admin",
  port:"3306",
  database:"myblog"
  }
  REDIS_CONF = {
    port : 6379,
    host : '127.0.0.1',
  }
}
if(env === "pro"){
  MYSQL_CONF={
    host:"localhost",
  user:"root",
  password:"admin",
  port:"3306",
  database:"myblog"
  }
  REDIS_CONF = {
    port : 6379,
    host : '127.0.0.1',
  }
}

module.exports={
  MYSQL_CONF,
  REDIS_CONF
}